package com.itrh.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    private Integer page = 1;
    private Integer pageSize = 10;

    public Integer getStart() {
        return (page - 1) * pageSize;
    }
}
